﻿using System.IO;

using Sonic.Framework.Extensions;

using NUnit.Framework;

namespace Sonic.Framework.Tests.Extensions
{
    [TestFixture]
    public class FileInfoExtensionsTest
    {
        [Test]
        public void GetPostfixFileInfoTest()
        {
            FileInfo fileInfo = new FileInfo("test.css");
            string postfix = "-postfix";
            FileInfo expected = new FileInfo("test-postfix.css");
            FileInfo actual;
            actual = FileInfoExtensions.GetPostfixFileInfo(fileInfo, postfix);
            Assert.AreEqual(expected.Name, actual.Name);
        }
    }
}
